<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS特性-优先级</title>
    <style>
       /* 选择器选中标签的范围越大，优先级/权重越低 */
        div {
            color: green;
        }
         /* !important提权功能，提高权重/优先级别到最高，慎用 */
        * {
            color: red !important;
        }
        .box {
            color: blue;
        }
        #test {
            color: orange;
        }

    </style>
</head>
<body>
    <div class="box" id="test" style="color: blueviolet;">div标签</div>
</body>
</html>